package cn.com.ytst.data.integration.exception;

/**
 * @ClassName DataExchangeException
 * @Deacription TODO
 * @Author Administrator
 * @Date 2020/1/4 0004 15:06
 * @Version 1.0
 **/
public class DataExchangeException extends RuntimeException {

    /**  
	 * @Fields serialVersionUID : 
	 */ 
	private static final long serialVersionUID = -3868941468713912071L;

	private String code;

    private String error;

    private Throwable ex;

    public DataExchangeException(){

    }

    public DataExchangeException(String code,String error,Throwable ex){
       this.code = code;
       this.error = error;
       this.ex = ex;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public Throwable getEx() {
        return ex;
    }

    public void setEx(Throwable ex) {
        this.ex = ex;
    }
}
